NUM_SPECIES = 2
BIN_DIR_BASE = ./${PETSC_ARCH}
BIN_DIR      = ./${BIN_DIR_BASE}/${NUM_SPECIES}

CFLAGS      = ${DFTFFT_CFLAGS}   ${EXTRA_CFLAGS}
CPPFLAGS    = ${DFTFFT_CPPFLAGS} ${EXTRA_CPPFLAGS}



all:

ex: chkbin_dir ${EX}.o
	${CLINKER} -o ${EX} ${EX}.o ${DFTFFT_LIBS};\
	${MV} ${EX} ${BIN_DIR}/;\
	${RM} ${EX}.o 


chkbin_dir:
	@if [ ! -d "${BIN_DIR}" ]; then \
	  echo Making directory ${BIN_DIR} for executables; \
	  ${MKDIR} ${BIN_DIR}; fi


distclean: clean
	${RM} -r *~ *.o ${BIN_DIR} ${BIN_DIR_BASE}

.PHONY: distclean

include ${DFTFFT_DIR}/conf/base
